package com.smartscreen.schedulemanage.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.util.List;

@TableName("exam_schedule")
public class ExamSchedule {
    @TableId(value = "exam_id", type = IdType.INPUT)
    private String examId;
    
    @TableField("name")
    private String name;
    
    @TableField("term_id")
    private String termId;
    
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
    
    // 关联对象
    @TableField(exist = false)
    private List<String> grades;
    
    @TableField(exist = false)
    private List<ExamScheduleDetail> schedule;

    // 构造函数
    public ExamSchedule() {}

    // Getters and Setters
    public String getExamId() { return examId; }
    public void setExamId(String examId) { this.examId = examId; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getTermId() { return termId; }
    public void setTermId(String termId) { this.termId = termId; }
    public LocalDateTime getCreatedAt() { return createdAt; }
    public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
    public LocalDateTime getUpdatedAt() { return updatedAt; }
    public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; }
    public List<String> getGrades() { return grades; }
    public void setGrades(List<String> grades) { this.grades = grades; }
    public List<ExamScheduleDetail> getSchedule() { return schedule; }
    public void setSchedule(List<ExamScheduleDetail> schedule) { this.schedule = schedule; }
}